package com.smdk.dsminio.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smdk.dsminio.entity.DsminioFolderInfo;

import java.util.List;

/**
 * (DsminioFolderInfo)表服务接口
 *
 * @author 神秘的凯
 * @since 2020-10-28 15:09:25
 */
public interface DsminioFolderInfoService extends IService<DsminioFolderInfo> {

    /**
     * 添加文件夹
     * @param dsminioFolderInfo
     * @return
     */
    public boolean addDsminioFolderInfo(DsminioFolderInfo dsminioFolderInfo);


    /**
     * 删除文件夹
     * @param id
     * @return
     */
    public boolean deleteDsminioFolderInfo(Long id);


    /**
     * 修改文件夹信息
     * @param dsminioFolderInfo
     * @return
     */
    public boolean updateDsminioFolderInfo(DsminioFolderInfo dsminioFolderInfo);




    /**
     * 查询Object集合信息
     * @param parentFolderId 父文件夹ID
     * @return
     */
    public List<DsminioFolderInfo> searchDsminioFolderInfo(Long parentFolderId);


    /**
     * 按bucketId查找Folder集合
     * @param bucketId
     * @return
     */
    public List<DsminioFolderInfo> searchDsminioFolderInfoByBucketId(Long bucketId);


    /***
     * bucket下的文件夹数量
     * @param bucketId
     * @return
     */
    public boolean searchFolderCount(Long bucketId);

}